<?php

namespace Index\ViewModel;

use Think\Model\ViewModel;

Class TaskViewModel extends ViewModel {

    protected $connection = 'DB';   //连接数据库
    protected $viewFields = array(
        //任务表

        'sys_task' => ['id', 'point', 'title', 'state', 'ctime','app_flag'],
    );

}
